package com.jieshuibao.mapper;

import java.util.List;
import java.util.Map;

import com.jieshuibao.model.db.CountAndSumMoney;
import com.jieshuibao.model.db.RedEnvelopes;
import com.jieshuibao.model.db.RedEnvelopesArticleUser;
import com.jieshuibao.model.db.RedEnvelopesExample;
import com.jieshuibao.model.domain.PagePhone;

import org.apache.ibatis.annotations.Param;

public interface RedEnvelopesExMapper {
	public RedEnvelopes selectRedEnvelopesByPhone(@Param(value="phoneNum")String phoneNum,@Param(value="questionUuid")String questionUuid);
	public List<RedEnvelopes> selectPageByPhone(PagePhone pagePhone);
	//小鸟红包
	public Double selectMoneyByExample(RedEnvelopesExample example);
	//文章 红包 总数 以及总额
	public CountAndSumMoney selectCountAndSumMoney(@Param(value="id")String id);
	//发红包人的头像
	public List<String> selectUserHeadImages(@Param(value="id")String id);
	//给文章打赏的所有人的信息
	public List<RedEnvelopesArticleUser> selectAllUserRedEnvelopes(PagePhone pagePhone);
	/**
	 * 参数查询
	 * @param map
	 * @return
	 */
	public List<RedEnvelopes> selectByMap(Map<String, Object> map);
	/**
	 * 参数查询合计
	 * @param map
	 * @return
	 */
	public Double countByMap(Map<String, Object> map);
}